package cn.edu.scau.repository;

import cn.edu.scau.pojo.entity.UserEntity;
import cn.edu.scau.repository.base.BaseRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * @description: 用户DAO
 * @author: yuxiang
 * @create: 2021-03-29 21:05
 **/
@Repository
public interface UserRepository extends BaseRepository<UserEntity,Integer> {

    UserEntity findUserEntityByUsername(@Param("username") String username);

    UserEntity findUserEntityById(@Param("id") Integer id);

}
